added variable to get the full path of the .git directory#31
Open
afcuttin wants to merge 1 commit intoHightor:CTANfrom
Open
added variable to get the full path of the .git directory#31afcuttin wants to merge 1 commit intoHightor:CTANfrom
afcuttin wants to merge 1 commit intoHightor:CTANfrom
Conversation
I've added an additional `GINDIR` variable so that the script knows where the `.git` folder is if it is called not from the root folder of the project. This solves the problem I've encountered while using `gitinfo2` together with `git-subrepo`, as documented here: ingydotnet/git-subrepo#499
afcuttin
commented
Sep 3, 2020
| firsttagdescribe={$FIRSTTAG}, | ||
| reltag={$RELTAG} | ||
| ]{gitexinfo}" HEAD > .git/gitHeadInfo.gin | ||
| ]{gitexinfo}" HEAD > $GINDIR/gitHeadInfo.gin |
Author
There was a problem hiding this comment.
"$GINDIR" should be used, to allow for path with spaces
|
Please note that according to CTAN the original maintainer passed away: https://ctan.org/author/longborough. 🖤 Since the package is released as LPPL, one can take over maintainer ship. - Maybe you would like to take over? 🤩 |
|
This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've added an additional
GINDIRvariable so that the script knows where the.gitfolder is if it is called not from the root folder of the project.This solves the problem I've encountered while using
gitinfo2together withgit-subrepo, as documented here: ingydotnet/git-subrepo#499